wayland: Never send NULL app id
authorTimm Bäder <mail@baedert.org>
Fri, 17 Nov 2017 19:07:18 +0000 (20:07 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 1 Dec 2017 06:30:25 +0000 (07:30 +0100)
The old gdk_get_program_class was never returning NULL, but
g_get_prgname might. So use the same fallback app id name we were using
before.

gdk/wayland/gdkwindow-wayland.c

index 1ae53ad97517c06b89f19ffffe83ca8c27d167f4..224c6420f56c91b798084d49b0834014def84829 100644 (file)
@@ -1473,6 +1473,9 @@ gdk_wayland_window_create_xdg_toplevel (GdkWindow *window)
 
   app_id = g_get_prgname ();
 
+  if (app_id == NULL)
+    app_id = "GTK+ Application";
+
   zxdg_toplevel_v6_set_app_id (impl->display_server.xdg_toplevel, app_id);
 
   maybe_set_gtk_surface_dbus_properties (window);